package com.igeek.clud_system.dao;

import com.igeek.clud_system.entity.ClubMembers;
import com.igeek.clud_system.entity.ClubMembershipRequests;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
@Mapper
public interface ClubMembershipRequestDao {


// 发起社团添加申请
    public void insertToClub(Integer clubId, Integer studentId, Date date);

//    查看是否已经发送过加入社团请求
    public ClubMembershipRequests findRequest(Integer studentId,Integer clubId);

    // 发起社团退出申请
    public void insertToClub2(Integer clubId, Integer studentId, Date date);

    //    查看是否已经发送过退出社团请求
    public ClubMembershipRequests findRequest2(Integer studentId,Integer clubId);

// 获取所有社团相关请求
    public List<ClubMembershipRequests> findClubAllRequest(Integer clubId);

//    获取申请信息
    public ClubMembershipRequests findRequestById(Integer requestId);

//    变更审批状态
    public void setRequest(Integer status,Integer requestId);
}
